package pg.entity;

import com.google.gson.Gson;
import deepr.anno.Property;
import deepr.anno.Schema;
import deepr.anno.SchemaType;
import deepr.anno.Type;

@Schema(type = SchemaType.PG, name = "assetCategory")
public class AssetCategory {

    @Property(primaryKey = true)
    private Integer id;
    @Property(type = Type.JSON)
    private Gson categoryId;
    @Property(type = Type.JsonArray)
    private Gson record;
    //    @Property(type = Type.JsonArray, handler = JsonKeySnowIdHandler.class, handlerArgs = {"id", "name"})
    @Property(type = Type.JsonArray)
    private Gson record2;

    @Property
    private Float amount;
    @Property
    private Integer location_id;
    @Property(schema = Location.class, forProperty = "location_id")
    private Location location;

}
